import request from '@/utils/request'

// 查询选择题选项列表
export function listChoiceOptions(query) {
  return request({
    url: '/exam/choiceOptions/list',
    method: 'get',
    params: query
  })
}

// 查询选择题选项详细
export function getChoiceOptions(optionId) {
  return request({
    url: '/exam/choiceOptions/' + optionId,
    method: 'get'
  })
}

// 新增选择题选项
export function addChoiceOptions(data) {
  return request({
    url: '/exam/choiceOptions',
    method: 'post',
    data: data
  })
}

// 修改选择题选项
export function updateChoiceOptions(data) {
  return request({
    url: '/exam/choiceOptions',
    method: 'put',
    data: data
  })
}

// 删除选择题选项
export function delChoiceOptions(optionId) {
  return request({
    url: '/exam/choiceOptions/' + optionId,
    method: 'delete'
  })
}

// 导出选择题选项
export function exportChoiceOptions(query) {
  return request({
    url: '/exam/choiceOptions/export',
    method: 'get',
    params: query
  })
}